home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)ed6.d64
/
speed spell 5
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
11KB
|
287 lines
1 GOTO910
2 PRINT"x[169][141][169][141]X` [234][255][169][255][133][145]L4[234]x[169]1[141][169][234][141]X`
3 [153]"xSTEPGINPUTSTOPSTEPINPUTONX` (null)(null)STEP(null)INPUTLISTLX(null)xSTEPUINPUTSTOPSTEP(null)INPUTONX`
4 PRINT"xhhh[170]h[168]hhhhhhh[152]H[138]HX`
5 [153]"hhhhhhh`
6 PRINT"[160][255][200][132][251][169][216][133][252] [241][183][138][162][160][255][200][145][251][136][208][251][230][252][202][208][246]`
7 [153]"NEWCLOSE(null)LEFT$>(null)ON(null)LET(null)(null)(null)(null)(null)(null)MID$(null)(null)`
35 IFUW=0THENSYSUU,15
40 POKEUC,0:POKEUN,0:UR$="":UI$="":IFUL=0THENUL=39
45 GETUI$:IFUI$=""THEN45
50 UA=ASC(UI$):UR=LEN(UR$):IFUA=13ANDUR>0THENPOKEUC,1:PRINT" [157]";:GOTO75
55 IFUA=20THENON-(UR=0)GOTO45:UR$=LEFT$(UR$,UR-1):PRINT"[157] [157][157]";:GOTO45
60 IFUR=ULTHEN45
65 GOSUB95:UR$=UR$+UI$:PRINTUI$;:GOTO45
75 FORUI=URTO1STEP-1:IFMID$(UR$,UI,1)=" "THENNEXT
80 UR$=LEFT$(UR$,UI):PRINT:RETURN
95 IFLEN(US$)=0THEN110
100 FORUI=1TOLEN(US$):IFUI$<>MID$(US$,UI,1)THENNEXT:UI$=""
105 RETURN
110 IFUA=46THENRETURN
111 IFUA=39THENRETURN
115 IFUA=32ANDUR<>0THENRETURN
120 IFUA>47ANDUA<58THENRETURN
125 IFUA>64ANDUA<91THENRETURN
130 IFUA<193ORUA>218THENUI$="":RETURN
135 IFPEEK(UT)=UU%THENUI$=CHR$(UA-128)
140 RETURN
155 UZ=0:US$=UJ$:UG$=UK$:UT$=UL$:UP=UJ:UL=UK:PRINT"[147]";:POKEUY,6:POKEUX,6
160 POKEUT,UV%:POKE251,0:POKE252,UF:POKE253,0:POKE254,US/256:SYSUV:SYSUU,15
165 POKEU1,U1%:POKEU2,U2%:POKEU3,U3%-1:POKEU4,U4%:GOTO35
299 :
300 REM DERIVED FROM COMMODORE ONTARIO EDUCATIONAL SOFTWARE PROJECT 1983
310 REM PROJECT DIRECTOR: FRANK WINTER
320 REM PROGRAM NAME: SPEED SPELL 5
330 REM WRITTEN BY: UNKNOWN
340 REM REVISED BY: JAN SAWCZAK"
350 [143] UPDATED BY: BILL CUMBERLAND
360 [143] IF REQUIRED, THE WORD LIST CAN BE
365 [143] MODIFIED TO INCLUDE MORE APPROPRIATE WORDS
370 [143] CHANGE OR ADD WORDS INTO DATA LINES 1900-2345
375 [143] MAXIMUM WORD LENGTH IS SET AT 20 LETTERS.
380 [143] TO ACCOMMODATE LONGER WORDS, CHANGE THE VALUE OF 'UL' IN LINE 1380
385 [143] NOTE: [196]O NOT CHANGE OR DELETE DATA LINE 2350
399 :
400 [153]"LOAD":[151]UT,UL%:[151]UY,15:[151]UX,15:[151]646,9
410 [153]" RIGHT$(null)(null)(null)(null)(null)LEN(null)RIGHT$(null)(null)(null) WAIT
420 PRINT" [212]HIS PROGRAM IS A WORD GAME TO HELP"
430 PRINT" YOU PRACTISE [199]RADE 5 SPELLING WORDS."
440 PRINT"[215]ATCH THE BRIEF DISPLAY OF EACH WORD.
450 [153]" (null)HEN TYPE WHAT YOU SEE.
460 GOSUB820:RETURN
499 :
500 REM <YES> SOUND
505 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
510 POKE54296,15:POKE54277,42:POKE54278,250
515 POKE54276,23:POKE54273,23:POKE54272,191
520 FORTM=1TO100:NEXT:POKE54276,32:FORTM=1TO200:NEXT
525 POKE54296,0:RETURN
530 REM <NO> SOUND
535 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
540 POKE54296,15:POKE54277,18:POKE54278,242
545 POKE54276,33:POKE54273,4:POKE54272,48
550 FORTM=1TO300:NEXT:POKE54276,32:FORTM=1TO400:NEXT
555 POKE54296,0:RETURN
560 REM <BLIP> SOUND
565 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
570 POKE54296,8:POKE54277,42:POKE54278,250
575 POKE54276,23:POKE54273,23:POKE54272,191
580 FORTM=1TO30:NEXT:POKE54276,32:FORTM=1TO50:NEXT
585 POKE54296,0:RETURN
590 FORTM=1TO500:NEXT:RETURN
591 FORTM=1TO1000:NEXT:RETURN
592 FORTM=1TO2000:NEXT:RETURN
595 FORTM=1TO5000:NEXT:RETURN
599 :
800 PRINT"[147]";:POKEUT,UU%:POKEUY,0:POKEUX,0:POKE646,3
801 PRINT" A TPUG EDUCATIONAL PROGRAM":GOSUB591
802 PRINT" [146]";
803 PRINT" [146]";
804 PRINT" [146]";
805 PRINT" SPEED SPELL 5 [146]";
806 PRINT" [146]";
807 PRINT" [146]":GOSUB591
808 PRINT" INSTRUCTIONS? Y/N ":GOSUB560
809 GETR$:IFR$<>"Y"ANDR$<>"N"THEN809
810 IFR$="Y"THENGOSUB400
811 PRINT"[147] AND AWAY WE GO!
812 [141]591:[141]500:[141]591
813 [137]1000
815 :
820 [141]591:[141]560
822 [151]UN,0:[153][200](UD$,24);" (null)RESS (null)(null)ATNLENVALCLOSEPEEKATN(null) TO CONTINUE WAIT"
824 [161]UI$:[139]UI$[179][177]" "[167]824
826 [142]
830 [141]591:[141]560
835 [151]UN,0:[153][200](UD$,24);"PRINT (null)RESS (null)(null)ATNLENVALCLOSEPEEKATN(null) TO CONTINUE WAITLIST"
840 [161]UI$:[139]UI$[179][177]" "[167]840
845 [142]
850 UP[178]UP[170]1:[153]"LOAD"[200](UT$[170]UP$,21);[201](UP$[170]UG$[170][196](UP),18)
855 [153]" --------------------------------------"
860 [139]UH[178]0[167][153][200](UD$,24);[200](UP$,7);"ATNNSWER, THEN PRESS (null)VAL(null)(null)(null)(null)WAIT"
865 UH[178]0:[153]"":[142]
875 [153][200](UD$,24);" ASCIFTEEN SECONDS PLEASE... ":[142]
899 :
900 US[178]1024:U1[178]209:U2[178]210:U3[178]211:U4[178]214:UC[178]204:UB[178]2048:UX[178]53280:UD[178]2064
902 UT[178]53272:UU%[178]21:UL%[178]23:UP%[178]2151:UN[178]198:UY[178]53281:UU[178]2199:UE[178]2087
904 UC$[178][199](155):UV[178]1214:UF[178]196:UV[178]2238
905 UD$[178]"":UP$[178]" "
906 L[178]650:[134] T$(L),A$(30)
909 [142]
910 [141]900:[153]"LOAD "
920 [137]800
999 :
1000 [153]"LOAD"UC$;:[140]:[151]UY,6:[151]UX,6
1050 UT$[178]" (null)PEED (null)PELL 5":UP[178]0
1100 [151]UT,UL%:UG$[178]""
1115 [153]"LOAD PEEKEFORE BEGINNING THIS CHR$RADE 5 WORD"
1120 [153]" GAME, DO YOU WISH TO SEE THE WORDS":[141]560
1125 [153]" (ALL 483 OF THEM)? (Y/N) ";
1135 [161]R$:[139]R$[179][177]"Y"[175]R$[179][177]"N"[167]1135
1140 [139]R$[178]"Y"[167]1670
1150 [141]8000:CR[178]0:WRO[178]0:[141]875:UG$[178]"":[140]
1165 T[178].1
1170 J[178]T[172]60:B[178]147
1185 C[178]0
1195 [135] R$
1200 [139] R$[178]"XXX" [167] 1225
1205 C[178]C[170]1
1210 [139] C[177]L [167] [153]"(null)OO MANY WORDS CHANGE LINE 906 SO THAT (null)> NO. OF WORDS"
1215 T$(C)[178]R$
1220 [137] 1195
1225 R[178][187]([171]TI)
1245 [153]"LOAD ATN WORD WILL BE FLASHED BETWEEN THESE LINES.":[141]591
1250 [153]" (null)ATCH CLOSELY!":[141]591
1260 [153]" ---------
1270 PRINT" ---------":GOSUB560:GOSUB560:GOSUB592
1295 PRINT" [215]E'LL START AT";T;"SECONDS.":UP=0:UQ=0
1315 UQ=UQ+1:GOSUB 830
1320 R=INT(C*RND(1))+1
1325 IF R=P1 OR R=P2 OR R=P3 THEN 1320
1330 IF R=P4 OR R=P5 THEN 1320
1335 IF UQ>NW THEN 1500
1337 UH=1:UG$="[215]ORD #":GOSUB850:GOSUB 1475
1340 GOSUB590
1345 GOSUB560:GOSUB560:PRINTLEFT$(UD$,13);TAB(20-(LEN(T$(R)))/2);
1347 PRINTT$(R)
1350 S=TI
1355 IF TI-S<J THEN 1355
1360 REM
1365 UP=UP-1:GOSUB850
1375 PRINT" [215]HAT WAS IT? >>>> ";
1380 US$="":UL=20:GOSUB35:R$=UR$
1385 PRINT
1390 IF R$<>T$(R) THEN 1440
1395 GOSUB500:PRINT"[158] [212]HAT'S RIGHT! >>> "T$(R)" [146][155]"
1400 CR=CR+1:J=J-3
1401 GOSUB 1800
1405 IF J<1.5 THEN J=1.5
1410 PRINT
1415 P1=P2:P2=P3:P3=P4:P4=P5:P5=R
1417 IF UP>9 THEN 1315
1420 PRINT" [212]HE NEXT ONE WILL BE DISPLAYED"
1425 PRINT" FOR";J/60;"SECONDS."
1435 GOTO 1315
1440 GOSUB530:PRINT"[150] [215][210][207][206][199]! [146] [201]T WAS - ":WRO=WRO+1
1442 FORFL=1TO11
1444 PRINT""TAB(16-(LEN(T$(R))/2))" >>>"CHR$(18-128*(FL/2=INT(FL/2)))" "T$(R)" [146]<<<[145]"
1446 FORTX=1TO100:NEXT:NEXT
1448 PRINT"[155]":GOSUB 1800
1450 J=J+3
1455 IF INT(J/3)<>J/3 THEN J=3*INT(J/3)
1460 GOTO 1410
1475 NQ=NQ+1
1480 PRINT"-----------"
1485 PRINT"-----------"
1486 RETURN
1500 REM SCORE
1510 POKE53280,0:POKE53281,0:POKE646,13:SR=CR/25:SC=SR*100
1520 PRINT"[147] [200]ERE ARE YOUR RESULTS..... [146]":GOSUB560:GOSUB591
1530 PRINT" [217]OUR SCORE IS:";SC;"PER CENT.":GOSUB591
1540 PRINT" [206]UMBER OF CORRECT WORDS:";CR:GOSUB591
1550 PRINT" [206]UMBER OF WRONG WORDS :";WRO:IFWRO>0THENGOSUB530
1555 GOSUB591
1560 IFCR=25THENPRINT"[158] [197][216][195][197][204][204][197][206][212]! [146][153]":GOSUB500
1565 IFCR=>23THENPRINT"[159] [199][207][207][196][160][215][207][210][203]! [146][153]"
1570 IFCR=>20THENPRINT"[153] [217]OU CAN DO BETTER. [146][153]"
1575 IFCR<20THENPRINT"[150] [217]OU HAVE A LOT TO LEARN! [146][153]":GOSUB530
1580 GOSUB830
1600 PRINT"[147] [217]OU HAVE A CHOICE:
1605 [153]" (null)RESS (null) WAIT TO REPEAT THIS PROGRAM
1610 PRINT" [208]RESS [205] [146] TO RETURN TO THE MENU
1615 [161]R$:[139]R$[179][177]"R"[175]R$[179][177]"M"[167]1615
1620 [139]R$[178]"R"[167][140]:[137]800
1630 [153]"LOAD (null)ETURNING TO THE DISK (null)VAL(null)(null)
1635 LOAD"MENU",8
1640 RUN
1645 END
1669 :
1670 RESTORE:UG$="[197]XAMINE [215]ORDS":UP=0
1680 FORA=1TO20
1690 READA$(A)
1695 IFA$(A)="XXX"THEN1710
1700 NEXTA
1710 UH=1:GOSUB850
1715 FORI=1TOASTEP2
1720 IFA$(I)="XXX"THENPRINT:GOTO1150
1730 PRINT"";A$(I);
1740 IFA$(I+1)="XXX"THEN1150
1750 PRINTTAB(20);A$(I+1)
1760 NEXTI
1770 GOSUB830
1785 GOTO1680
1800 PRINT"[217]OUR SCORE IS "CR"CORRECT"
1810 PRINT" "WRO"WRONG"
1820 RETURN
2000 DATA"ABLE","ACHE","ACT","ACTION","ACTOR","ACTRESS","ADDITION","ADMIT"
2005 DATA"ADOPT","ADVANCE","ADVENTURE","AGENT","AGREE","AID","AIM","ALLOW"
2010 DATA"AMOUNT","ANGER","ANGRY","ANSWER","ANSWERED","APART","APRON","ARGUE"
2015 DATA"ARMY","ARREST","ARROW","ARTIST","ATTEND","ATTIC","AVENUE","AVERAGE"
2020 DATA"AWFUL","BACON","BADGE","BARREL","BASE","BASEMENT","BATHE","BATTLE"
2025 DATA"BEAST","BEAUTY","BEGUN","BELOW","BENEATH","BENT","BIGGEST","BIRTH"
2030 DATA"BITTER","BLAME","BLANKET","BLEW","BLOOD","BLOOM","BOARD","BORROW"
2035 DATA"BOTHER","BOUND","BOW","BOWL","BRAIN","BRANCHES","BREAKING","BRIDGE"
2040 DATA"BROUGHT","BUILDING","BUTCHER"
2045 DATA"BUTTON","CABBAGE","[195]ANADIAN","CANAL","CANOE","CAPTIVE","CAPTURE"
2050 DATA"CAREFULLY","CARRYING","CASE","CAUGHT","CELSIUS","CHALK","CHARGE"
2055 DATA"CHEQUE","CHEERFUL","CHERRY","CHIEF","CHOICE","CHOOSE","CHOSE"
2060 DATA"COLLAR","COLLECT","COLOURED","COMMON","COMPANY","CONTEST","CONTROL"
2065 DATA"COPPER","COPY","CORRECT","COUGH","COUNTY","COUPLE","COURSE","COUSIN"
2070 DATA"COVER","COVERING","CROWD","CRUSH","CURE","CURL","DAILY","DAIRY"
2075 DATA"DAMAGE","DARKNESS","DAUGHTER","DEAL","DEALER","DEATH","DECAY"
2080 DATA"DECIMAL","DELIGHTED","DELIVER","DEPART","DEW","DIGGING","DINING"
2085 DATA"DIRECT","DISCOVER","DISLIKE","DITCH","DIVIDE","DODGE","DOLLAR"
2090 DATA"EASE","EDGE","ELEVEN","EMPTY","ENOUGH","ENTER","EQUAL","EVENT"
2095 DATA"EVERYBODY","EXCITING","EXPECT","EXPLORE","EXPRESS","EXTRA","FALSE"
2100 DATA"FAMOUS","FANCY","FASTEN","FAULT","FEAR","FEATHER","FELLOW","FIFTH"
2105 DATA"FORGETFUL","FOUGHT","FOUNTAIN","FREEZE","FRIENDLY","FRIGHTEN"
2110 DATA"FURNISH","FUTURE","GAIN","GARAGE","GATHERS","GEM","GENERAL","GENTLE"
2115 DATA"GENTLEMAN","GIANT","GLOBE","GOAL","GRASSHOPPER","GRAVE","GROUP"
2120 DATA"GROWN","GROWTH","GUESSED","HADN'T","HANDLE","HARBOUR","HARDER"
2125 DATA"HARDLY","HARVEST","HASTY","HATCH","HEAVEN","HEAVY","HERD","HEALTH"
2130 DATA"HERO","HIGHER","HIRE","HISTORY","HOCKEY","HOLIDAY","HOLLOW","HOPING"
2135 DATA"HOSE","HOWEVER","HUNGRY","HUNT","HURRYING","HYDRO","IDEA","IDLE"
2140 DATA"INFORM","INSECT","INSPECT","INVENT","INVENTED","INVISIBLE","IRON"
2145 DATA"ISLAND","JET","JOIN","JOKE","JUDGE","JUDGED","JUNIOR","KILOGRAM"
2150 DATA"KINDNESS","KITCHEN","KNEE","KNELT","KNIT","KNIVES","KNOCK","KNOWN"
2155 DATA"LAND","LANGUAGE","LARGELY","LATELY","LAWFUL","LEADER","LEATHER"
2160 DATA"LEDGE","LESS","LEVEL","LIKELY","LIMB","LISTEN","LISTENING","LIVELY"
2165 DATA"MACHINE","MAGICIAN","MANE","MANNER","MARKET","MATCHES","MATTER"
2170 DATA"MEAN","MEANING","MEMBER","MIGHTY","MILD","MILLION","MINING","MINUTE"
2175 DATA"MISTAKE","MISTAKEN","MODERN","MOIST","MOMENT","MOSTLY","MOUNTAIN"
2180 DATA"ORE","OTHER","OURSELVES","OUTDOORS","OUTLINE","PALACE","PARADE"
2185 DATA"PARENTS","PATCH","PAYING","PATENT","PEACE","PERFECT","PERFECTLY"
2190 DATA"PERFUME","PERHAPS","PERIOD","PERSON","PICNIC","PICTURE","PIECE"
2195 DATA"PILOT","PICTURE","PLANNED","PLANNING","PLEASANT","POEM","POLAR"
2200 DATA"POSTAGE","POSTER","POST OFFICE","POUND","POWDER","POWER","POWERFUL"
2205 DATA"PRAISE","PREPARE","PREPARING","PRESENTED","PRESS","PREY","PRICED"
2210 DATA"PRINCE","PRINCESS","PRISON","PRISONER","PROBLEM","PRODUCE","PRODUCT"
2215 DATA"PROMISE","PROMISED","PROTECT","PROVE","PUBLIC","PUPIL","PURPLE"
2220 DATA"PURSE","QUARTER","QUESTION","QUIET","QUILT","RAISING","REALLY"
2225 DATA"REASON","RECESS","RECORD","REDUCE","REFUSE","REMEMBER","REMIND"
2230 DATA"REPAIR","REPEAT","REPLIED","REPLY","RETURN","REWARD","REWRITE"
2235 DATA"RIBBON","RICHES","RIFLE","RISE","RISEN","ROUGH","ROYAL","RUBBER"
2240 DATA"SAFETY","SAMPLE","SCENE","SCORE","SCRATCH","SCREAM","SEAL","SEASON"
2245 DATA"SECRET","SERVE","SERVICE","SETTLE","SETTLEMENT","SEVENTEEN","SHARE"
2250 DATA"SHARPEN","SHED","SHELF","SHINING","SHIPPING","SHOPPING","SHOULDER"
2255 DATA"SHOVEL","SHOWN","SICKNESS","SIGNAL","SILENCE","SILENT","SIMPLE"
2260 DATA"SKIN","SKIPPER","SKIRT","SLICE","SLIPPED","SLIPPERY","SMELL"
2265 DATA"SOLID","SOLVE","SOONER","SOUR","SOURCE","SOUTHERN","SPARKLE","SPEED"
2270 DATA"SPOKEN","STABLE","STATE","STATION","STEAL","STEEL","STEER","STIR"
2275 DATA"STOCK","STORMY","STRANGER","STRAWBERRY","STRETCH","STUDENT","STUDIES"
2280 DATA"SUBSTANCE","SUDDEN","SUDDENLY","SUGAR","SUPPOSE","SURPRISE","SWIFT"
2285 DATA"TAILOR","TASTE","TERM","THEMSELVES","THIRTY-SIX","THIEF","THIEVES"
2290 DATA"THOUGHT","THRESH","THREW","THRILL","THROAT","THRONE","THROUGH"
2295 DATA"TIMBER","TIRED","TOMATO","TOOLS","TOUCH","TOUGH","TRACTOR","TRAPPER"
2300 DATA"TRAVEL","TRAVELLER","TRIBE","TRIM","TRIMMED","TROUBLE","TRUE"
2305 DATA"TRUTH","TRUTHFUL","TRYING","TWENTY-FIVE","UNABLE","UNEASY","UNIFORM"
2310 DATA"UNITE","UNTIE","USUAL","VACATION","VALLEY","VALUE","VERSE","VESSEL"
2315 DATA"WEALTH","WESTERN","WHEREVER","WHISTLE","WHOSE","WILLING","WINDY"
2320 DATA"WINNER","WINNING","WOMEN","WONDERFUL","WORLD","WORRY","WORTH"
2325 DATA"WRITER","WRONG","YOU'RE","YOUNGER","YOURSELVES","ZERO"
2330 DATA"XXX"
8000 REM SET WORDS AT 25
8010 PRINT"[147] [212]HERE WILL BE 25 WORDS.":NW=25
8020 RETURN
8100 REM WHC 90:11:29